from selenium import webdriver
import time

from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By



drivr= webdriver.Edge()
drivr.maximize_window()

drivr.get('https://www.jiuxian.com/')
time.sleep(2)

# 1.点击 请登录
drivr.find_element(By.XPATH,'/html/body/div[2]/div/div[1]/div/a[1]').click()
time.sleep(4)
# 2.输入用户名
drivr.find_element(By.ID,'userName').send_keys('17733058407')
# 3.输入密码
drivr.find_element(By.ID,'password').send_keys('123456789')
# 4.强制等待20s 验证码输入
# 5.点击 登录按钮

